home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Herois
/
Codigo.Cst
/
00078_Script_AcompanhaScroll2
< prev
next >
Wrap
Text File
|
1999-03-19
|
896b
|
34 lines
property linha, posicaoMinima, posicaoMaxima
property spr
on getBehaviorDescription
return "Num ponto do scroll aparece sprite"
end
on getPropertyDescriptionList
set p_list = [ ¼
#posicaoMinima: [ #comment: "Posicao minima do scroll para aparecer", ¼
#format: #integer, ¼
#default: 1000 ],¼
#posicaoMaxima: [ #comment: "Posicao maxima do scroll para aparecer", ¼
#format: #integer, ¼
#default: 1200 ]¼
]
return p_list
end
on beginSprite me
set spr = the spriteNum of me
set linha = 0
set the visibility of sprite spr to false
end
on scrollLinha me, linhas
set linha = linha + linhas
if linha > posicaoMinima and linha < posicaoMaxima then
set the visibility of sprite spr to true
else
set the visibility of sprite spr to false
end if
end